package com.example.demo.Utils;

import java.util.Random;

public class KeyUtils {

    /** 单线程生成不重复数字字串 */
    public static synchronized String getRandom(){
        Random rd = new Random();

        Integer a =  rd.nextInt(900000)+100000;

        return System.currentTimeMillis()/1000 + String.valueOf(a);
    }
}
